/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package trefliq.EJB.webservice;

import javax.ejb.EJB;
import javax.jws.WebService;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import trefliq.EJB.sessionbeans.MovieGenreBean;

/**
 *
 * @author Yash
 */
//@WebService(serviceName = "MovieGenreWebService")
@Stateless()
public class MovieGenreWebService {
    @EJB
    private MovieGenreBean ejbRef;// Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Web Service Operation")

    @WebMethod(operationName = "CreateMovieGenre")
    public boolean CreateMovieGenre(@WebParam(name = "movieid") long movieid, @WebParam(name = "genre") long genre) {
        return ejbRef.CreateMovieGenre(movieid,genre);
    }
    
}
